﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Webmedia.Wedding.Entities.Object.Restaurent
{
    public class Kho
    {
        [Key]
        public int ID { get; set; }
        [Display(Name = "Tên kho")]
        public string TenKho { get; set; }

        [Display(Name = "Nhà Hàng")]
        public int NhaHangID { get; set; }
        [ForeignKey("NhaHangID")]
        public NhaHang NhaHang { get; set; }


        [InverseProperty("Kho")]
        public ICollection<PhieuNhapKho> PhieuNhapKhos { get; set; }

        [InverseProperty("Kho")]
        public ICollection<SanPham.SanPhamTrongKho> SanPhamTrongKhos { get; set; }  
    }
}
